<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: black;
        }
        div{
            position: relative;
            height: 300px;
            background: url(/pink/imgs/bg1.png)no-repeat;
            animation:  bearimg 10s linear infinite;

        }

        div::after{
            content: '';
            position: absolute;
            bottom: 0px;
            display: block;
            width: 200px;
            height: 100px;
            background: url(/pink/imgs/bear.png) no-repeat;
            /* background-position:-1400px 0; */
            animation: bear 1s steps(7) infinite, maing 5s linear forwards;
        }
        @keyframes bearimg{
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 100% 0;
            }
        }

        @keyframes bear {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: -1400px 0;
            }
        }

        @keyframes maing {
            0% {
                left: 0;
            }

            100% {
                left: 50%;
                transform: translate(-50%, 0);
            }
        }
    </style>
</head>

<body>
    <div>
       
    </div>
</body>

</html>